﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfSnqkGasAnalysis.Model
{
    /// <summary>
    /// 实体，有机硫数据录入
    /// </summary>
    ///  创建时间：2022-12-26 17:46:39。作者：王浩力
    public class Organic_sulfur : BaseModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 样品编号
        /// </summary>
        public string Samp_no { get; set; }

        /// <summary>
        /// 井深
        /// </summary>
        public string Well_deep { get; set; }

        /// <summary>
        /// 取样条件
        /// </summary>
        public string Sampling_conditions { get; set; }

        /// <summary>
        /// 委托单位
        /// </summary>
        public string Client { get; set; }

        /// <summary>
        /// 取样人
        /// </summary>
        public string Sampling_user_name { get; set; }

        ///// <summary>
        ///// 分析人（姓名）
        ///// </summary>
        ///// 创建时间：2023-1-9 16:49:26。作者：王浩力
        //public string Analysis_userRealName { get; set; }

        /// <summary>
        /// 分析人id
        /// </summary>
        /// 创建时间：2023-1-9 16:49:26。作者：王浩力
        public long? Analysis_userID { get; set; }

        /// <summary>
        /// 取样单位
        /// </summary>
        public string Sampling_unit { get; set; }

        /// <summary>
        /// 井号
        /// </summary>
        public string Well_no { get; set; }

        /// <summary>
        /// 层位
        /// </summary>
        public string Horizon { get; set; }

        /// <summary>
        /// 油压
        /// </summary>
        public decimal? Oil_pressure { get; set; }

        /// <summary>
        /// 取样时间
        /// </summary>
        public string Sampling_time { get; set; }

        /// <summary>
        /// 分析时间
        /// </summary>
        public string Analysis_time { get; set; }

        /// <summary>
        /// 分析单位
        /// </summary>
        public string Analysis_unit { get; set; }

        /// <summary>
        /// 取样位置
        /// </summary>
        public string Sampling_location { get; set; }

        /// <summary>
        /// 取样温度
        /// </summary>
        public decimal? Sampling_temp { get; set; }

        /// <summary>
        /// 套压
        /// </summary>
        public decimal? Casing_pressure { get; set; }

        /// <summary>
        /// 羰基硫
        /// </summary>
        public decimal? Cos { get; set; }

        /// <summary>
        /// 甲硫醚
        /// </summary>
        public decimal? Dimethyl_Sulfide { get; set; }

        /// <summary>
        /// 叔丁基硫酸
        /// </summary>
        public decimal? Tert_butyl { get; set; }

        /// <summary>
        /// 乙硫醚
        /// </summary>
        public decimal? Diethyl_sulphide { get; set; }

        /// <summary>
        /// 甲硫醇
        /// </summary>
        public decimal? Methyl_mercaptan { get; set; }

        /// <summary>
        /// 二硫化碳
        /// </summary>
        public decimal? Carbon_disulfide { get; set; }

        /// <summary>
        /// 甲基乙基硫醚
        /// </summary>
        public decimal? Methylethyl_sulfide { get; set; }

        /// <summary>
        /// 正丁硫醇
        /// </summary>
        public decimal? N_Butyl_mercaptan { get; set; }

        /// <summary>
        /// 乙硫醇
        /// </summary>
        public decimal? Ethanethiol { get; set; }

        /// <summary>
        /// 异丙硫醇
        /// </summary>
        public decimal? Isopropanethiol { get; set; }

        /// <summary>
        /// 噻吩
        /// </summary>
        public decimal? Thiophene { get; set; }

        /// <summary>
        /// 二甲基二硫醚
        /// </summary>
        public decimal? Dithioether { get; set; }

        /// <summary>
        /// 有机硫总含量mg/m³
        /// </summary>
        public decimal? Organic_sulfur_total { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 审核步骤 ;状态，1=待校对，2=待审核，3=被驳回，4=审核通过
        /// </summary>
        public byte? StepS { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public string Createtime { get; set; }

        /// <summary>
        /// 创建人姓名
        /// </summary>
        public string CreateUser { get; set; }

        /// <summary>
        /// 创建人id
        /// </summary>
        public long CreateUserId { get; set; }

        /// <summary>
        /// 校对人
        /// </summary>
        public string Proofreader { get; set; }

        /// <summary>
        /// 校对人id
        /// </summary>
        /// 创建时间：2023-1-9 17:00:56
        public long? ProofreaderUserId { get; set; }
        

        /// <summary>
        /// 校对时间
        /// </summary>
        public string ProofreaderTime { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        public string DeleteTime { get; set; }


        /// <summary>
        /// 步骤值，文本
        /// </summary>
        public string StepCurrentTXT
        {
            get
            {
                if (StepS == 1)
                {
                    return "待校对";
                }
                if (StepS == 2)
                {
                    return "待审核";
                }
                if (StepS == 3)
                {
                    return "被驳回";
                }
                if (StepS == 4)
                {
                    return "审核通过";
                }
                return "待校对";
            }
        }
    }
}
